package com.beiding.t;

import java.io.*;

/**
 * @author 丁常磊
 * @date 2022/3/17 16:13
 */

public class 读取日志 {


    public static void main(String[] args) throws IOException {

        File file = new File("C:\\Users\\lenovo\\Documents\\WeChat Files\\wxid_u7l7a4vt6tih22\\FileStorage\\File\\2022-03\\app-omc-accnt.log");

        BufferedReader bufferedReader = new BufferedReader(new FileReader(file));

        String line;

        while ((line = bufferedReader.readLine()) != null) {

            if (line.contains("TaskConsumer")) {
                System.out.println(line);
            }
        }
    }

}
